package org.micro.rbac.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统日志表
 * </p>
 *
 * @author HongSir
 * @since 2024-06-12
 */
@Getter
@Setter
@TableName("SYS_LOG")
@Schema(name = "SysLog", description = "系统日志表")
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId("ID")
    private Long id;

    @Schema(description = "用户ID")
    @TableField("USER_ID")
    private Long userId;

    @Schema(description = "客户IP")
    @TableField("CLIENT_IP")
    private String clientIp;

    @Schema(description = "请求路径")
    @TableField("REQUEST_PATH")
    private String requestPath;

    @Schema(description = "请求时间")
    @TableField("REQUEST_TIME")
    private LocalDateTime requestTime;
}
